// tabBarComponent/tabBar.js
const app = getApp();
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    tabbar: {
      type: Object,
      value: {
        "backgroundColor": "#ffffff",
        "color": "#979795",
        "selectedColor": "#1c1c1b",
        "list": [
          {
            "pagePath": "/pages/tabbars/home/home",
            "iconPath": "icon/home.png",
            "selectedIconPath": "icon/home1.png",
            "text": "找项目"
          },
          {
            "pagePath": "/pages/tabbars/talents/talents",
            "iconPath": "icon/talents.png",
            "selectedIconPath": "icon/talents1.png",
            "text": "找人才"
          },
          {
            "pagePath": "/pages/index/index",
            "iconPath": "icon/book.png",
            "selectedIconPath": "icon/book1.png",
            "isSpecial": true,
            "text": "学知识"
          },
          {
            "pagePath": "/pages/tabbars/message/message",
            "iconPath": "icon/message.png",
            "selectedIconPath": "icon/message1.png",
            "text": "消息"
          },
          {
            "pagePath": "/pages/tabbars/mine/mine",
            "iconPath": "icon/mine.png",
            "selectedIconPath": "icon/mine1.png",
            "text": "我的"
          }
        ]
      }
    },
    showDot: {
      type: Boolean,
      value: false
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    isIphoneX: app.globalData.systemInfo.model.search('iPhone X') != -1 ? true : false
  },

  /**
   * 组件的方法列表
   */
  methods: {

  },
  // lifetimes: {
  //   created: function() {
  //     wx.getSystemInfo({
  //       success: res => {
  //         console.log('设备', res);
  //         this.data
  //       }
  //     })
  //   }
   
  // },
})

